home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2001-07-12 | 2.5 KB | 92 lines |
- "FILE"="Xteq Systems X-Setup Plugin 6.0"
- "TYPE"="6"
- "COUNT"="5"
- "UIPATH"="Appearance\Control Panel\Other Settings"
- "NAME"="Visible pages in "Display""
- "LANGUAGE"="VBScript"
- "VERSION"="1.50"
- "OSVERSION"="11101"
- "TEXT 1"="Show "Background" page in Display control"
- "TEXT 2"="Show "Screensaver" page in Display control"
- "TEXT 3"="Show "Appearance" page in Display control"
- "TEXT 4"="Show "Settings" page in Display control"
- "TEXT 5"="Show "ActiveDesktop" page in Display control "
- "DESCRIPTION 1"="To show a page inside the "Display" control, activate it. To hide it, deactivate it."
- "DESCRIPTION 2"="If all items are hidden, the "Display" control will not start."
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"=""NoDispCpl" fix by Mikhail Medvedev [ursa@ukrpost.net]"
- "COMMENT 2"=" "
-
-
-
- sPath="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\"
- sPath2="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\"
-
- sBAK="NoDispBackgroundPage" 'all dword (1 = remove)
- sSCR="NoDispScrSavPage"
- sAPP="NoDispAppearancePage"
- sSET="NoDispSettingsPage"
- sACD="NoActiveDesktopChanges"
-
- sNothing="NoDispCPL"
-
- Sub Plugin_Initialize
- i=RegReadValue(sPath & sBAK)
- if i<>1 then SetUIElement 1,true
-
- i=RegReadValue(sPath & sSCR)
- if i<>1 then SetUIElement 2,true
-
- i=RegReadValue(sPath & sAPP)
- if i<>1 then SetUIElement 3,true
-
- i=RegReadValue(sPath & sSET)
- if i<>1 then SetUIElement 4,true
-
- i=RegReadValue(sPath2 & sACD)
- if i<>1 then SetUIElement 5,true
- End Sub
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- Call WriteIt(1,sPath,sBAK)
- Call WriteIt(2,sPath,sSCR)
- Call WriteIt(3,sPath,sAPP)
- Call WriteIt(4,sPath,sSET)
- Call WriteIt(5,sPath2,sACD)
-
- 'check if everything is turned off, and if so set NoDispCPL flag..
- if GetUIElement(1)=false and GetUIElement(2)=false and GetUIElement(3)=false and GetUIElement(4)=false and GetUIElement(5)=false then
- Call RegWriteValue(sPath & sNothing,1,2)
- else
- If RegValueExists(sPath & sNothing) then
- Call RegDeleteValue(sPath & sNothing)
- end if
- end if
-
-
- Call IndicateSettingChange()
- End Sub
-
- Sub WriteIt(ITM,PAT,VAL)
- b=GetUIElement(ITM)
- if b=false then
- call RegWriteValue(PAT & VAL,1,2)
- else
- chk=RegReadValue(PAT & VAL)
- if IsEmpty(chk)=false then
- Call RegDeleteValue(PAT & VAL)
- end if
- end if
- end sub
-
- Sub Plugin_Terminate
- End Sub
-
-
-
-